Clip exposed area to the visible region.
authorAlexander Larsson <alex@localhost.localdomain>
Thu, 22 Jan 2009 14:18:03 +0000 (15:18 +0100)
committerAlexander Larsson <alex@localhost.localdomain>
Thu, 2 Apr 2009 08:15:25 +0000 (10:15 +0200)
This avoids extra work, and it means we won't allocate large pixmaps
for double buffering.

gdk/gdkwindow.c

index 755bc5b8875eb6189fb9225f0853eb17d8ea5705..cc0765d1fc3c72ba3d285d858d4cb738adb97b47 100644 (file)
@@ -4430,6 +4430,9 @@ gdk_window_process_updates_internal (GdkWindow *window)
          GdkRegion *window_region;
          gboolean end_implicit;
 
+         /* Clip to part visible in toplevel */
+         gdk_region_intersect (update_area, private->clip_region);
+         
           if (debug_updates)
             {
               /* Make sure we see the red invalid area before redrawing. */